package com.llmcu.efficient.validation.se.pojo;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * xxxx
 *
 * @author liuling
 * @date 2025/3/23 19:47
 */
@Data
public class ContextList {
    @NotBlank(message = "团单号不能为空")
    private String cntroNo;
    @NotBlank(message = "清单类型不能为空")
    @Pattern(regexp = "0|1|2", message = "操作类型只能是 '0'、'1' 或 '2'")
    private String oprType;
    @NotEmpty(message="人员信息不能为空")
    private List<@NotNull(message = "人员信息元素不能为null") @Valid People> peopleList;
}
